package com.ankur.calllogger.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.ankur.calllogger.dao.Account;
import com.ankur.calllogger.dao.CallDetail;
import com.googlecode.objectify.ObjectifyService;

public class ContextInitializer implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		ObjectifyService.register(CallDetail.class);
		ObjectifyService.register(Account.class);
	}

}
